<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CEP13</title>
<?php include(SERVER_ROOT . '/views/header.php'); ?>
<link href="<?= SITE_ROOT ?>/<?= SERVER_ROOT ?>/views/css/gallery.css" rel="stylesheet" type="text/css" />
</head>

<body>
	<div id="wrapper">
		<?php if($data['ln']=='en') { include(SERVER_ROOT . '/views/head_en.php'); } else if($data['ln']=='th') { include(SERVER_ROOT . '/views/head_th.php'); } ?>

		<?php if($data['ln']=='en')
		{
			for ($i = 1; $i < (sizeof($data['galleryinterior']) + 1); $i++) 
			{
				$var = $data['galleryinterior'][$i - 1];
				if ($i == 1)
				{
		?>
				<div id="wrapper_gallery_interior_en">
		<?php
				} else
				{
		?>
				<div id="wrapper_gallery_normal">
		<?php
				}
		?>
					<div id="gallery_top">&nbsp;</div>
					<div id="clear"></div>
					<div id="gallery_left">&nbsp;</div>
					<div id="gallery_picture"><img src="<?= SITE_ROOT ?>/<?= SERVER_ROOT ?>/<?= THUMB_LOCATION . "gallery/" ?><?= $var->gallery_image; ?>" alt="" width="558" height="425"></div>
					<div id="gallery_content">
						<div style="width:448px; height:150px; float:left;"></div>
						<div style="width:348px; height:50px; float:left; padding: 0px 30px 0px 70px; font-size:x-large; color:#FFFFFF;">
							<?= stripslashes($var->gallery_topic); ?>
						</div>
						<div style="width:368px; height:195px; float:left; padding: 15px 10px 15px 70px; font-size:small; color:#FFFFFF;">
							<?= stripslashes($var->gallery_detail); ?>
						</div>						
					</div>
					<div id="gallery_right">&nbsp;</div>
					<div id="clear"></div>
					<div id="gallery_bottom">&nbsp;</div>
					<div id="clear"></div>			
				</div>
				<div id="clear"></div>
		<?php
			}
		?>
		<?php
		} else if($data['ln']=='th')
		{
			for ($i = 1; $i < (sizeof($data['galleryinterior']) + 1); $i++) 
			{
				$var = $data['galleryinterior'][$i - 1];
				if ($i == 1)
				{
		?>
				<div id="wrapper_gallery_interior_th">
		<?php
				} else
				{
		?>
				<div id="wrapper_gallery_normal">
		<?php
				}
		?>
					<div id="gallery_top">&nbsp;</div>
					<div id="clear"></div>
					<div id="gallery_left">&nbsp;</div>
					<div id="gallery_picture"><img src="<?= SITE_ROOT ?>/<?= SERVER_ROOT ?>/<?= THUMB_LOCATION . "gallery/" ?><?= $var->gallery_image; ?>" alt="" width="558" height="425"></div>
					<div id="gallery_content">
						<div style="width:448px; height:150px; float:left;"></div>
						<div style="width:348px; height:50px; float:left; padding: 0px 30px 0px 70px; font-size:x-large; color:#FFFFFF;">
							<?= stripslashes($var->gallery_topic); ?>
						</div>
						<div style="width:368px; height:195px; float:left; padding: 15px 10px 15px 70px; font-size:small; color:#FFFFFF;">
							<?= stripslashes($var->gallery_detail); ?>
						</div>						
					</div>
					<div id="gallery_right">&nbsp;</div>
					<div id="clear"></div>
					<div id="gallery_bottom">&nbsp;</div>
					<div id="clear"></div>			
				</div>
				<div id="clear"></div>
		<?php
			}
		?>
		<?php
		}
		?>
		
		<div id="gallery_end">&nbsp;</div>
		<div id="clear"></div>	
		
		<?php if($data['ln']=='en') { include(SERVER_ROOT . '/views/foot_en.php'); } else if($data['ln']=='th') { include(SERVER_ROOT . '/views/foot_th.php'); } ?>
	</div>
</body>
</html>
